package superTest;

public class China extends Person{

    public China(){
        super("小熊");
        System.out.println("China的无参构造");
    }

    public China(String name){
        super(name);
        System.out.println("China的有参构造");
    }

    protected String name="李四";

    public void fun(){
//        System.out.println(super.name);
        System.out.println("China的fun方法");
    }

    public void test(){
//        super.fun();
//        System.out.println(this);

    }

    public static void main(String[] args) {
         China china=new China();
//         china.fun();
         china.test();
    }
}
